package com.stox.ui.javafx.launcher;

import javafx.application.Application;
import javafx.stage.Stage;

import com.stox.ui.javafx.core.widget.wrapper.ImageView;

public class StoxUiJavaFXApplication extends Application {
	
	@Override
	public void start(Stage primaryStage) throws Exception {
		primaryStage.getIcons().add(new ImageView("icon-title.png").getImage());
		primaryStage.setTitle("Stox");
		new ApplicationContextLoaderRunnable().loadApplicationContext(primaryStage);	
	}
	
	public static void main(String[] args) {
		Thread.currentThread().setContextClassLoader(
				new StoxJavaFxClassLoader(
						Thread.currentThread().getContextClassLoader()));
		launch(args);
	}

}
